package com.wsm.consumer.feign.fallback;

import com.wsm.common.dto.request.DtoRequest;
import com.wsm.common.dto.response.DtoResponse;
import com.wsm.consumer.feign.FeignApiService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author ：wangshimin
 * @date ：Created in 2020-10-30 上午 09:46
 * @description：
 * @version:
 */
@Slf4j
@Service
public class FeignApiServiceFallback implements FeignApiService {

    @Override
    public DtoResponse getTest(DtoRequest dtoRequest) {
        log.error("调用失败,接口熔断降级");
        return DtoResponse.builder().response("调用失败,接口熔断降级").build();
    }
}
